package cn.neusoft.service;

import cn.neusoft.domain.CargoDeployBill;
import cn.neusoft.domain.DeployBillStageEnum;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
@Service

public interface DepBillService {
    public List<CargoDeployBill> searchDepBill(int warehouseID);
    @ApiOperation("总是根据bill状态自动更新状态，并且同时生成特定出入库单")
    public int changeDepBill(CargoDeployBill cargoDeployBill);
    public boolean isPermittedCreate(CargoDeployBill cargoDeployBill);
    @ApiOperation("若日期为空，则默认对应界不限日期")
    public List<CargoDeployBill> queryDepBill(DeployBillStageEnum stage, Date from, Date to);
    public int deleteDepBill(int billID);
    public CargoDeployBill getDepBillByID(int id);

    public int revertDepBill(CargoDeployBill cargoDeployBill);

    public int generateDepBill(CargoDeployBill cargoDeployBill);

    public int stageChangeDepBill(CargoDeployBill cargoDeployBill, DeployBillStageEnum stageEnum);

}
